According to Simon Marshall (S.Marshall@sequent.cc.hull.ac.uk):
Like GNU & X11 stuff, epoch is available in the UK from
uk.ac.ic.doc.src (00000510200001). You can log on; there's help to
tell you the different ways of getting source. Epoch is in
/gnu/epoch.
Epoch is also available from
/anonymous@aix370.rrz.uni-koeln.de:gnu/emacs/epoch or
/anonymous@134.95.132.2:gnu/emacs/epoch
Volunteers for other FTP sites outside the United States, or for
mail access to Epoch source, please step forward.
File: epochfaq Node: What is the latest version of Epoch?, Prev: How can I get Epoch?, Up: Epoch and GNU Emacs, Next: Moving to Epoch 4 broke some lisp code that worked before
What is the latest version of Epoch?
------------------------------------
The latest version is 4.2. Previous versions still in use by some
people include 4.0 patchlevels 0,1, and 2, 4.1, the 4.0 alpha and beta
levels, and version 3.2.
Epoch 4.2 is based on GNU Emacs 18.58, which is the most recent
version of GNU Emacs.
Existing installations of Epoch 4.1 should be upgraded to 4.2 as
soon as possible.
File: epochfaq Node: Moving to Epoch 4 broke some lisp code that worked before, Prev: What is the latest version of Epoch?, Up: Epoch and GNU Emacs, Next: I switched Epoch versions and my X resources are being ignored
Moving to Epoch 4 broke some lisp code that worked before
In one of the beta versions of epoch, the term "button" was replaced
by the term "zone". The idea was, "button" was misleading (since it
refered to a mouse button or a pushbutton as well). It didn't really
describe Epoch's attributed text.
As a consequence, the names of all the button-related function names
and variables were changed. There are two ways to deal with this
change:
Fset the function names
.......................
Put the following command at the head of each file of elisp code
that uses buttons:
(require 'button)
This simply does a series of fset's to replace the "button" names with
the new "zone" names.
Edit the source
...............
Convert all references of "button" to "zone". You can use the
function convert-current-buffer in epoch-lisp/convert-buttons.el (in
the Epoch distribution) to do this automatically.
NOTE: There may be additional problems; in particular, since
attributes were eliminated in Epoch 4.0, any use of them will have to
be eliminated also. This is less simple than switching from buttons
to zones. Fortunately, most Epoch packages on the net now support
4.0. Therefore, I won't bother to come up with an answer for this one
(unless someone actually needs to know).
File: epochfaq Node: I switched Epoch versions and my X resources are being ignored, Prev: Moving to Epoch 4 broke some lisp code that worked before, Up: Epoch and GNU Emacs, Next: What's the difference between Epoch and GNU Emacs version 19?
I switched Epoch versions and my X resources are being
ignored
-------
From Martin Boyer (mboyer@ireq-robot.hydro.qc.ca):
Old versions of Epoch extracted its X default resources from
the user's .Xdefaults file by hand; this is no longer the case. If
Epoch isn't picking up resources like previous versions did on your
system, prior to starting Epoch do this:
xrdb -merge $HOME/.Xdefaults
This makes the X server's database pick up and maintain all of the
resource definitions found in $HOME/.Xdefaults.
Alternatively, you can use the '-ud' command line flag to force
Epoch to manually scan $HOME/.Xdefaults.
A second problem is that Epoch uses the first word in the command
that executed Epoch (argument 0) to search the X resource database for
Epoch resources. Thus, if you invoke Epoch with the name:
epoch-4.2
Epoch will use the string 'epoch-4.2' to search the resource
database, thereby missing the resources specified by the name 'epoch'.
The workaround is to use the '-name' or '-rn' command-line option like
so:
epoch-4.2 -name epoch
or:
epoch-4.2 -rn epoch
Using -name is more recommended, as it is a sort-of standard option
among X applications (most X Toolkit applications support it).
File: epochfaq Node: What's the difference between Epoch and GNU Emacs version 19?, Prev: I switched Epoch versions and my X resources are being ignored, Up: Epoch and GNU Emacs
What's the difference between Epoch and GNU Emacs version
19?
---
To quote directly from the GNU 'status' file (obtained via anonymous
FTP as /anonymous@prep.ai.mit.edu:pub/gnu/status or
/anonymous@18.71.0.38:pub/gnu/status):
Emacs 18 maintenance continues for simple bug fixes. Version 19
approaches release, counting among its new features before and after
change hooks, source-level debugging of Emacs Lisp programs, X
selection processing, including CLIPBOARD selections, scrollbars,
support for European character sets, floating point numbers,
per-buffer mouse commands, interfacing with the X resource manager,
mouse-tracking, lisp-level binding of function keys, and multiple X
windows (`screens' to emacs).
Thanks go to Alan Carroll and the people who worked on Epoch for
generating initial feedback to a multi-windowed emacs. Emacs 19
supports two styles of multiple windows, one with a separate screen
for the minibuffer, and another with a minibuffer attached to each
screen.
A couple of other features of Version 19 are buffer allocation, which
uses a new mechanism capable of returning storage to the system when a
buffer is killed, and a new input system--all input now arrives in the
form of Lisp objects.
Other features under consideration for later releases of Version 19
include:
* Associating property lists with regions of text in a buffer.
* Multiple font, color, and pixmaps defined by those properties.
* Different visibility conditions for the regions, and for various
windows showing one buffer.
* Hooks to be run if point or mouse moves outside a certain range.
* Incrementally saving undo history in a file, so that recover-file
also reinstalls buffer's undo history.
* Static menu bars, and better pop-up menus.
Epoch currently supports much of the new functionality of GNU Emacs
v19, including some features that apparently won't be immediately
available in GNU Emacs v19 (notably, associating property lists with
regions of text, and multiple fonts/colors/pixmaps defined by those
properties).
A postscript to this answer is a message that Richard Stallman
(Mr. Gnu himself) posted to gnu.emacs.help in Apr 1992:
Emacs 19 won't support text highlighting, but a later version will.
We have code basically working for attaching arbitrary properties to
parts of the text, including choice of font and color.
This feature is designed for attributes which are considered part of
the text itself. What Epoch provides is highlighting that is part
of the presentation of the text, not logically part of the text itself.
That is useful also; I hope we will find the wherewithal to implement
that along with the other highlighting features.
There is also a version of Emacs 19 written by Lucid. Called "Lucid
Emacs", this is something from its README about it:
Lucid GNU Emacs 19.3 is now available. This is a version of GNU
Emacs derived from an early version of Emacs version 19 from the
Free Software Foundation.
You can get it via anonymous FTP from the host labrea.Stanford.EDU
(36.8.0.47). It is currently available only by FTP. We don't have
the manpower to make tapes right now.
Log in with the user "anonymous" and "username@host" as a password
(that is, your email address.) Execute the command "cd
pub/gnu/lucid/". These are the files you will find there:
lemacs-19.3.tar.Z
The complete source distribution. This file is about 8 megabytes.
When untarred and uncompressed, the source distribution will take up
about 20 megs. You will need an additional 12 megs or so to compile it.
lemacs-19.3-sun4.tar.Z
This is a ready-to-run set of Sun4 executables, and a DOC file. If
you want to use these executables, you will still need to get the file
lemacs-19.3.tar.Z, because Emacs cannot function very well without the
lisp library online. This file is about 1.7 megs, 3.8 megs when
unpacked, 3 megs of which is the Emacs executable itself (2.1 megs if
stripped.)
Don't forget to set "binary" mode when transferring these files.
Unpack them with some variation of the command "zcat
lemacs-19.3.tar.Z | tar -vxf -".
.... [edit out info on lucid emacs mailing lists] ....
Why Another Version of Emacs?
=============================
Lucid's latest product, Energize, is a C/C++ development
environment. Rather than invent (and force our users to learn) a
new user-interface, we chose to build part of our environment on top
of the world's best editor, GNU Emacs. (Though our product is
commercial, the work we did on GNU Emacs is free software, and is
useful without having to purchase our product.)
We needed a version of Emacs with mouse-sensitive regions, multiple
fonts, the ability to mark sections of a buffer as read-only, the
ability to detect which parts of a buffer has been modified, and
many other features.
Why Not Epoch?
==============
For our purposes, the existing version of Epoch was not sufficient;
it did not allow us to put arbitrary pixmaps/icons in buffers,
`undo' did not restore changes to regions, regions did not overlap
and merge their attributes in the way we needed, and several other
things.
We could have devoted our time to making Epoch do what we needed
(and, in fact, we spent some time doing that) but, since the FSF
planned to include Epoch-like features in their version 19, we
decided that our efforts would be better spent improving Emacs19
instead of Epoch.
Our original hope was that our changes to Emacs would be
incorporated into the "official" v19. However, scheduling conflicts
arose, and we found that, given the amount of work still remaining
to be done, we didn't have time to merge with the FSF's code.
Consequently, we have released our work as a forked branch of Emacs,
instead of delaying any longer.
It seems likely that a merger of Epoch and Lucid Emacs will occur in
the not-too-distant future.
File: epochfaq Node: Configuring Epoch, Prev: Epoch and GNU Emacs, Up: Top, Next: Windows
Configuring Epoch
=================
* Menu:
* How can my .emacs file deal with both GNU Emacs and Epoch?::
* How can I configure Epoch to support full 8-bit character sets?::
* How can I cut and paste between Epoch and OpenLook?::
File: epochfaq Node: How can my .emacs file deal with both GNU Emacs and Epoch?, Up: Configuring Epoch, Next: How can I configure Epoch to support full 8-bit character sets?
How can my .emacs file deal with both GNU Emacs and Epoch?
File: epochfaq Node: How can I configure Epoch to support full 8-bit character sets?, Prev: How can my .emacs file deal with both GNU Emacs and Epoch?, Up: Configuring Epoch, Next: How can I cut and paste between Epoch and OpenLook?
How can I configure Epoch to support full 8-bit character
sets?
-----
There are two parts to this: display and input.
Display is handled by the variables "meta-printable" and "ctl-arrow".
From the documentation string for "meta-printable":
Non-nil means meta characters, that is characters in the range
0240..0377, are printable. Nil means display meta chars with
backslash and octal digits. Automatically becomes local when set in
any fashion.
From the documentation string for "ctl-arrow":
t means display control chars with uparrow. Nil means use backslash
and octal digits. Automatically becomes local when set in any
fashion.
Input is handled by the flag "EIGHTBIT_KEYBOARD", which is set in config.h:
/* Define EIGHTBIT_KEYBOARD if you want keys in range 0240 to 0377
* to insert corresponding eight-bit characters.
*/
/* #define EIGHTBIT_KEYBOARD */
Define this flag only if you are using a keyboard with direct support
for 8-bit characters.
File: epochfaq Node: How can I cut and paste between Epoch and OpenLook?, Prev: How can I configure Epoch to support full 8-bit character sets?, Up: Configuring Epoch
How can I cut and paste between Epoch and OpenLook?
* How do I get the minibuffer back at the bottom of my edit window?::
* How do I prevent the initial edit window from appearing?::
* How do I stop the windows from automatically raising upon entry?::
* How do I change the cursor?::
* How do I define edit screen attributes on a per-mode basis?::
* How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?::
* How do I iconify my entire Epoch session at once?::
* Does Epoch support scrollbars?::
* How can I make more room for windows?::
File: epochfaq Node: How do I get the minibuffer back at the bottom of my edit window?, Up: Windows, Next: How do I prevent the initial edit window from appearing?
How do I get the minibuffer back at the bottom of my edit
window?
-------
Start Epoch with the command-line option '-nm'. Alternately, in your
general .Xdefaults file, specify:
epoch.nonlocal.minibuf: False
File: epochfaq Node: How do I prevent the initial edit window from appearing?, Prev: How do I get the minibuffer back at the bottom of my edit window?, Up: Windows, Next: How do I stop the windows from automatically raising upon entry?
How do I prevent the initial edit window from appearing?
In other words, how do I get only the minibuffer upon startup?
There is a variable that controls whether or not an initial edit
window will be provided. By default, of course, one is; to stop this
from happening, put the following in your .emacs:
(setq inhibit-initial-screen-mapping t)
This will have no effect if you're using local minibuffers (i.e. when
the minibuffer is a part of each edit window), as described above.
[Thanks to Chris Love (love@cs.uiuc.edu).]
File: epochfaq Node: How do I stop the windows from automatically raising upon entry?, Prev: How do I prevent the initial edit window from appearing?, Up: Windows, Next: How do I change the cursor?
How do I stop the windows from automatically raising upon
entry?
------
Specify the following in your .emacs file:
(setq auto-raise-screen 'minibuf)
This makes the minibuffer raise when an Epoch edit window is
entered; if you don't want the minibuffer to raise itself either, do
the following instead:
(setq auto-raise-screen nil)
File: epochfaq Node: How do I change the cursor?, Prev: How do I stop the windows from automatically raising upon entry?, Up: Windows, Next: How do I define edit screen attributes on a per-mode basis?
How do I change the cursor?
---------------------------
Another noticeable change from GNU Emacs is the cursor glyph (which is
a pencil shape). To change this to a more normal-appearing arrow
NOTE: You can specify a different cursor glyph for the minibuffer,
if you like.
There are also X resources for the screen and minibuffer cursor
glyphs; equivalent to the above elisp code would be the following (in
your .Xdefaults file):
epoch.screen.cursor.glyph: 68
epoch.minibuf.cursor.glyph: 68
For either of these approaches, any valid cursor ID number will do; to
see the available cursors and their ID numbers, take a look at the
file /usr/include/X11/cursorfont.h.
(*Note How do I define edit screen attributes on a per-mode basis?::, for details on how to customize the cursor glyph based on
the mode of a screen's initial buffer.)
File: epochfaq Node: How do I define edit screen attributes on a per-mode basis?, Prev: How do I change the cursor?, Up: Windows, Next: How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?
How do I define edit screen attributes on a per-mode basis?
Or, how do I make my C++ edit windows come up with 48 lines and a big
round dot for a cursor?
You can define styles for new edit screens created with
find-file-other-screen (which is, by default, bound to 'C-z 4 C-f' and
'C-z 4 f') based on the initial buffer's mode like so:
(setq epoch-mode-alist
(append (list
(cons 'c-mode
(list
(cons 'geometry "80x52")
(cons 'cursor-glyph 94)))
(cons 'LaTeX-mode
(list
(cons 'geometry "90x48")
(cons 'cursor-glyph 58)))
(cons 'c++-mode
(list
(cons 'geometry "80x48")
(cons 'cursor-glyph 38))))
epoch-mode-alist))
File: epochfaq Node: How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?, Prev: How do I define edit screen attributes on a per-mode basis?, Up: Windows, Next: How do I iconify my entire Epoch session at once?
How do I make Epoch manage edit window and icon names based
on the name of the current buffer(s)?
-------------------------------------
The base Epoch distribution doesn't support this, but there have
been a number of small packages written that accomplish this. There
is one written by Derek Ney (derek@boingo.med.jhu.edu) up for
anonymous FTP at ftp.ncsa.uiuc.edu (141.142.20.50) as
/outgoing/marca/epoch/derek-title.el.Z. Another one can be found in
the epoch sources at ftp.uu.net (in the directory
/languages/emacs-lisp/epoch).
File: epochfaq Node: How do I iconify my entire Epoch session at once?, Prev: How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?, Up: Windows, Next: Does Epoch support scrollbars?
How do I iconify my entire Epoch session at once?
-------------------------------------------------
By default, 'C-z i' is bound to iconify-screen, which only iconifies
the current edit window. To iconify everything, define a small
function iconify-everything in your .emacs file like so:
(defun iconify-everything ()
"Iconify entire Epoch session at once."
(interactive)
(dolist (s (screen-list))
(iconify-screen s))
(iconify-screen 0)
)
Then bind it to a key sequence (e.g. C-z C-i) like so:
(global-set-key "\C-z\C-i" 'iconify-everything)
File: epochfaq Node: Does Epoch support scrollbars?, Prev: How do I iconify my entire Epoch session at once?, Up: Windows, Next: How can I make more room for windows?
Does Epoch support scrollbars?
------------------------------
No; native support for scrollbars is a technical challenge that so far
no one has taken up for either GNU Emacs or Epoch.
Alternatively, pick up the widgets package from cs.uiuc.edu, in
pub/epoch-files/widgets/widgets.tar.Z. This is a Motif-only "widget
server" that epoch can talk to. It will produce a nice Motif
scroll-bar on the side of your epoch screen. It does a lot more, but
as far as I can tell, that's all it does out of the box (i.e., without
writing some lisp code). Somebody correct me if I'm wrong, here.
[Thanks to Pierre Bondono (bondono@vnet.ibm.com) for the following:]
Related to this, there is a "scrolling concept" inside the IMOUSE
packages that may be of interest. IMOUSE can be found via anonymous
FTP from ireq-robot.hydro.qc.ca (131.195.2.130); see question H-1
below.
File: epochfaq Node: How can I make more room for windows?, Prev: Does Epoch support scrollbars?, Up: Windows
How can I make more room for windows?
-------------------------------------
My workstation's screen area is overwhelmed by all the windows I
reate in my Epoch editing sessions. How can I squeeze more windows
into my working environment?
This is only a half-facetious question; there's only room on most
workstation screens (usually 1024x768 or 1280x1024 pixels in area) for
a couple of windows with decent-sized fonts. To help alleviate the
discomfort of cramped space, try the 'tvtwm' window manager. (I sound
like a cough-drop commercial.)
Tvtwm, a superset of the twm window manager, allows windows to be
placed on a virtual root window that can be of any size (for example,
3000 by 3000 pixels). This virtual root can be navigated via tvtwm's
'panner', a reduced-size overview of your entire environment.
Tvtwm can be found on your local comp.sources.x archive or in the
X11R4 and X11R5 distributions. Try anonymous FTP to ftp.uu.net
(137.39.1.9) in /usenet/comp.sources.x.
For those people that actually like the OpenLook window manager :-),
a similarly modified version of Olwm can be found in ftp.uu.net
/usenet/comp.sources.x/volume14/olvwm (and a lot of other places,
too).
People running on HP workstations can use the rooms metaphor built
into the vuewm. A similar, but less powerful alternative is the vr
program in the contrib directory at export.lcs.mit.edu. It, however,
doesn't support spreading epoch windows around different rooms.
This binds a command that changes the current foreground color to red
to the key sequence C-c 1.
The following function allows you to interactive specify a new color
for the current buffer's foreground:
(defun set-foreground (newfg)
"Set current foreground color to NEWFG."
(interactive "sForeground color: ")
(set-style-foreground buffer-style newfg)
(redraw-display))
This function is activated by typing:
M-x set-foreground
Or, it can be bound to a key like so:
(global-set-key "\C-z\C-s" 'set-foreground)
File: epochfaq Node: How do I switch fonts interactively?, Prev: How do I interactively select my foreground color?, Up: Colors and Fonts, Next: How can I associate a certain foreground color with a file?
How do I switch fonts interactively?
------------------------------------
To change fonts, you don't have to define new styles. Just define a
This changes the current edit window's font to "8x13" when the key
sequence 'C-c 1' is entered.
The following function allows you to interactively input a font name:
(defun set-font (newfont)
"Set current font to NEWFONT."
(interactive "sFont name: ")
(font newfont)
(redraw-display))
This function is activated by typing:
M-x set-font
Or, it can be bound to a key like so:
(global-set-key "\C-z\C-s" 'set-font)
If the font you specify with either of these methods isn't valid for
your X server (i.e. if the font doesn't exist in a directory listed in
your X server's font path and in that directory's fonts.dir file, or
isn't available from the font server if you're running X11R5), you
will get this message in your minibuffer:
Bad font name
Font names are ordinary X font names; for example, a 14-point non-bold
non-italic Helvetica font can be referred to as:
"*helvetica-medium-r-normal--14*"
The standard X client 'xlsfonts' will give you a list of the fonts
registered with your X server. The standard X client 'xfontsel' lets
you interactively put together an X font specification string based on
individual attributes (e.g., family, size).
File: epochfaq Node: How can I associate a certain foreground color with a file?, Prev: How do I switch fonts interactively?, Up: Colors and Fonts, Next: How do I design my own really funky technicolor modeline?
How can I associate a certain foreground color with a file?
So that every time I load that file my foreground color is
automatically set?
You can easily do this by using GNU Emacs' ability to handle file
variables. For example, if you have defined style 'red-style' to
specify a red foreground color, and want file 'foobar.c' to always
have the foreground color red, add this to the bottom of 'foobar.c':
^L
/*
Local Variables:
buffer-style: red-style
End:
*/
NOTE: '^L' is a newline character; you can enter one in an edit
buffer by typing C-q C-l.
Then, whenever 'foobar.c' is loaded, the variable 'buffer-style' will
be set to 'red-style', and as a result the foreground color for that
buffer will be red.
File: epochfaq Node: How do I design my own really funky technicolor modeline?, Prev: How can I associate a certain foreground color with a file?, Up: Colors and Fonts, Next: How do I replace the mouse region selection underlining with a different style?
How do I design my own really funky technicolor modeline?
File: epochfaq Node: How do I replace the mouse region selection underlining with a different style?, Prev: How do I design my own really funky technicolor modeline?, Up: Colors and Fonts
How do I replace the mouse region selection underlining with
a different style?
------------------
The appearance of the region underlined with the mouse is described
by the style in the variable "motion::style". You can use the normal
style functions to manipulate this variable. For example, you can
turn off underlining with the following:
(set-style-underline motion::style nil)
Now, nothing will show up. To have just the text foreground color
change on mouse selection, do:
(set-style-foreground motion::style "yellow")
(set-style-background motion::style (background))
Replace "yellow" with any desired X color name.
To have the selected region appear as reverse video, try:
(set-style-foreground motion::style (background))
(set-style-background motion::style (foreground))
To have the selected region appear with an overlayed diagonal stipple
pattern, try:
(set-style-background motion::style "red")
(set-style-background-stipple motion::style
(make-bitmap 4 4 "\\167\\273\\335\\356"))
The style bound to motion::style has default settings as follows:
This makes C-h (the backspace key as well as the Control-h key
sequence) delete characters backward, and shifts responsibility for
help to C-x h. This fix will work for GNU Emacs as well as Epoch.
If you don't like to have your backspace key also untabify (i.e.,
convert tabs to spaces on the fly), use this instead of the previous
global-set-key for C-h:
(global-set-key "\C-h" 'backward-delete-char)
Use xmodmap
...........
Outside of Epoch, you can change the X representation of the
BackSpace key into a Delete by doing this:
xmodmap -e "keysym BackSpace = Delete"
This approach has the disadvantage of not being done inside
of Epoch for those who prefer customizing lisp code to customizing
their system environments.
[Thanks to Joe Wells (jbw@bigbird.bu.edu).]
File: epochfaq Node: How can I use Page Up and Page Down keys?, Prev: How do I make the backspace key work properly?, Up: Keyboard, Next: How can I stop function keys from putting garbage in my buffer?
How can I use Page Up and Page Down keys?
-----------------------------------------
How do I make the keys marked "Page Up" and "Page Down" on an IBM
Selectric-style keyboard do their jobs?
Using the key rebinding facility discussed below, you can put the
following two lines in your .emacs file:
(rebind-key "Prior" nil "\M-v") ; Note Prior, not Page Up.
(rebind-key "Next" nil "\C-v") ; Note Next, not Page Down.
Similarly, if you want "Home" and "End" to go to the beginning and end
of the current buffer respectively, do:
(rebind-key "Home" nil "\M-<")
(rebind-key "End" nil "\M->")
How do I bind keys in the numeric keypad on an IBM
Selectric-style
keyboard to their obvious functions (arrow movement, home, end, etc.)?
NOTE: This makes the keypad arrow keys work, the keypad PgUp/PgDown
work, and the keypad Home/End go to the beginning/end of the buffer.
Other keys appropriate for rebinding in a Selectric-style numeric
keypad include KP_Divide, KP_Multiply, KP_Subtract, KP_Add, KP_Enter,
KP_Insert, and KP_Delete; see below for more details.
What general facilities does Epoch provide for rebinding function
keys, and how do I use them?
.............................
The rebind-key function allows you to rebind any keycode to a new
string. An example is probably best to show how this works. To make
the key marked "Page Up" (on IBM Selectric-style keyboards) actually
move the current buffer up a page (like M-v), do:
(rebind-key "Prior" nil "\M-v")
Note that "Prior" is the actual X keysym name for the "Page Up" key;
to see the X keysym names, refer to /usr/include/X11/keysymdef.h (or
$OPENWINHOME/include/X11/keysymdef.h on OpenWindows systems).
(Disregard the leading XK_ in keysymdef.h's definitions for Epoch's
purposes; thus, X11's "XK_Prior" becomes Epoch's "Prior". To find out
which keys are actually active for your keyboard and server, use the
command "xmodmap -pk".)
The standard function keys are named F1 through F12, the function keys
on the left side of a Sun-style keyboard are named L1 through L10, and
so on. The keypad apparently cannot be addressed by KP_0 through KP_9
but must be referenced by names like KP_Left, KP_Up, and so on.
A simple two-step approach for binding function keys to commands
involves binding a key to an arbitrary GNU Emacs key encoding (in the
following example, C-^ k 1) and then binding that encoding to the
command. An example that binds the function key marked "End" to an
arbitrary command (in this case, end-of-line) follows:
(rebind-key "End" 0 "\C-^k1")
(global-set-key "\C-^k1" 'end-of-line)
Note that the above is only an example of the two-step method; if you
really want "End" to do 'end-of-line, do the obvious instead:
(rebind-key "End" 0 "\C-e")
The rebind-key command allows modifiers (e.g. shift, control) to be
specified; the following example binds Control-"End" to an arbitrary
command (in this case, end-of-buffer):
(rebind-key "End" 'control "\C-^Ck1")
(global-set-key "\C-^Ck1" 'end-of-buffer)
For an example of these principles in action, see the file
'amc/keys.el' in the 3.2 contrib directory (which is still up for
anonymous ftp at cs.uiuc.edu as a separate .tar.Z file) or at
ftp.ncsa.uiuc.edu in /outgoing/marca/epoch.
[Thanks to Alan Carroll (carroll@cs.uiuc.edu).]
File: epochfaq Node: How can I stop function keys from putting garbage in my buffer?, Prev: How can I use Page Up and Page Down keys?, Up: Keyboard, Next: How do I turn the keyboard bell off?
How can I stop function keys from putting garbage in my
buffer?
-------
I want Epoch to disregard accidental presses of function keys that
insert spurious characters (e.g., "-1~") into the buffer. Does Epoch
perchance have some magical way to make this happen?
Perchance, Epoch does. The variable epoch::function-key-mapping, if
set to nil, makes Epoch disregard such keys, unless they're explicitly
rebound with rebind-key. You can set this in your .emacs file like
so:
(setq epoch::function-key-mapping nil)
[Thanks to Alan Carroll (carroll@cs.uiuc.edu).]
File: epochfaq Node: How do I turn the keyboard bell off?, Prev: How can I stop function keys from putting garbage in my buffer?, Up: Keyboard
How do I turn the keyboard bell off?
------------------------------------
The easy answer is to put the following line in your .emacs file:
(setq epoch::bell-volume -50)
Another possibility, if you like visual bells (i.e., having the
entire edit window flash reverse video instead of hearing an audible
beep), is to put the following in your .emacs file:
(epoch::set-bell t)
The malicious answer, for those who, like myself, never want to hear
another beep for the rest of time, is to modify src/x11term.c in the
Epoch distribution; just change the line that reads:
* How do I highlight regions of text in a buffer with different styles?::
* Can I use highlighting packages on monochrome displays?::
File: epochfaq Node: How do I highlight regions of text in a buffer with different styles?, Up: Highlighting, Next: Can I use highlighting packages on monochrome displays?
How do I highlight regions of text in a buffer with
different styles?
-----------------
While the current Epoch distribution contain plenty of support for
zones and styles, the enabling mechanisms that make syntax-directed
highlighting possible, no intrinsic support for such highlighting is
provided. This situation may change in subsequent releases of Epoch.
Three packages that provide varying degrees of support for
syntax-directed highlighting are:
tek-highlight-2.0.tar.Z
(available from archive.cis.ohio-state.edu
or ftp.ncsa.uiuc.edu, see below), which supports comment highlighting
in source code as well as support for the Info documentation browser,
various mail and news packages, and manual pages.
Version 2.1.2 (beta) of tek-highlight is available for anonymous ftp
as /rle-vlsi.mit.edu:pub/tek-highlight-2.1.1.beta.shar or
My thanks go to Luis Miguel Silveira for allowing the use of his
machine for ftp access.
Please mail any bug reports (and documentation additions) to:
rwhitby@research.canon.oz.au
lightbrite.tar.Z
(available from ftp.ncsa.uiuc.edu, see below),
written by Marc Andreessen to allow per-mode regexp-based
highlighting. Thus, you can have all #define's/#endif's in red,
setq's and defun's in green, int/float/double's in yellow, '-->'s in
purple, and so on. Here's something from its README:
* Accurate comment highlighting.
* Regexp touchup highlighting.
* Easy specification of visual attributes of multiple
highlighting styles.
* Instant highlighting (as you type) with adjustable
responsiveness.
* Buffer size thresholds for both comment and touchup
highlighting.
* Use of minor mode and local keymaps.
* Re-highlight visible screen, current paragraph, current
function, immediate area, or entire buffer.
* Large assortment of default mode-specific highlighting
patterns.
* Automatic highlight on find-file and/or write-file.
* Special handling of mail and rmail modes.
* Works with both Epoch and Lucid Emacs transparently.
hilit.el.Z
(most recent version was posted to gnu.emacs.souces and is
available from ftp.ncsa.uiuc.edu, see below), which provides
source-code comment and regexp highlighting.
File: epochfaq Node: Can I use highlighting packages on monochrome displays?, Prev: How do I highlight regions of text in a buffer with different styles?, Up: Highlighting
Can I use highlighting packages on monochrome displays?
* Where can I find Epoch-specific emacs lisp packages?::
* Where can I get a PostScript version of the Epoch manual?::
File: epochfaq Node: Where can I find Epoch-specific emacs lisp packages?, Up: Epoch-Specific Emacs Lisp Packages, Next: Where can I get a PostScript version of the Epoch manual?
Where can I find Epoch-specific emacs lisp packages?
Try the following anonymous FTP sites for Epoch-specific emacs lisp
packages:
aix370.rrz.uni-koeln.de (134.95.132.2)
/gnu/emacs
archive.cis.ohio-state.edu (128.146.8.52)
/pub/gnu/emacs/elisp-archive/elisp
[This is main elisp-archive site; it is mirrored at
ftp.uu.net (137.39.1.9) in /languages/emacs-lisp, among other places.
Not much Epoch code exists here; in particular, a much more
recent version of hilit.el.Z is at ftp.ncsa.uiuc.edu, below.]
ftp.cs.buffalo.edu (128.205.32.3)
/pub
[This is the distribution site for the new Dired, which will
be included in Emacs v19; it includes support for Epoch.]
ftp.ncsa.uiuc.edu (141.142.20.50)
/outgoing/marca/epoch
[This is the previous FAQ maintainer's archive of Epoch code; the
README file gives an overview of what he considers to be
'essential' Epoch packages, and all of those packages
are available there. If he gets out of date on any of
these and you notice it, please let him know.]
icsi-ftp.berkeley.edu (128.32.201.55)
/pub/elisp
ireq-robot.hydro.qc.ca (131.195.2.130)
/pub/emacs/lisp
[This is the distribution site for the IMOUSE package.]
wilma.cs.brown.edu (128.148.31.66)
/pub/hyperbole
[This is the distribution site for the Hyperbole hypertext
system, which includes support for Epoch. Also available
separately from here is the wrolo 'rolodex' package, one of the
components of Hyperbole.]
Also see the contrib tar file found at cs.uiuc.edu, in the same
directory as the actual Epoch distribution.
Also watch the gnu.emacs.sources Usenet newsgroup, as well as the
epoch newsgroup/mailing list (see below).
Please volunteer the names of any sites not on this list.
File: epochfaq Node: Where can I get a PostScript version of the Epoch manual?, Prev: Where can I find Epoch-specific emacs lisp packages?, Up: Epoch-Specific Emacs Lisp Packages
Where can I get a PostScript version of the Epoch manual?
* Files, associating colors with: How can I associate a certain foreground color with a file?.
* Finding Emacs Lisp packages for Epoch: Where can I find Epoch-specific emacs lisp packages?.
* Finding Epoch: How can I get Epoch?.
* First window: How do I prevent the initial edit window from appearing?.
* Fisher, Bob: Contributors.
* Fonts, switching interactively: How do I switch fonts interactively?.
* Foreground color, interactively setting: How do I interactively select my foreground color?.
* Formatting the FAQ: Formatting the FAQ.
* Function keys insert garbage: How can I stop function keys from putting garbage in my buffer?.
* Function names changed: Moving to Epoch 4 broke some lisp code that worked before.
* Garbage from function keys: How can I stop function keys from putting garbage in my buffer?.
* GNU Emacs 19: What's the difference between Epoch and GNU Emacs version 19?.
* Graves, Jerry: Contributors.
* Handling Epoch-specific code: How can my .emacs file deal with both GNU Emacs and Epoch?.
* Highlighting and monochrome: Can I use highlighting packages on monochrome displays?.
* Highlighting: Highlighting.
* Highlighting regions of text: How do I highlight regions of text in a buffer with different styles?.
* How can I associate a certain foreground color with a file?: How can I associate a certain foreground color with a file?.
* How can I configure Epoch to support full 8-bit character sets?: How can I configure Epoch to support full 8-bit character sets?.
* How can I get Epoch?: How can I get Epoch?.
* How can I make more room for windows?: How can I make more room for windows?.
* How can I stop function keys from putting garbage in my buffer?: How can I stop function keys from putting garbage in my buffer?.
* How can I use Page Up and Page Down keys?: How can I use Page Up and Page Down keys?.
* How can my .emacs file deal with both GNU Emacs and Epoch?: How can my .emacs file deal with both GNU Emacs and Epoch?.
* How do I change the cursor?: How do I change the cursor?.
* How do I define edit screen attributes on a per-mode basis?: How do I define edit screen attributes on a per-mode basis?.
* How do I design my own really funky technicolor modeline?: How do I design my own really funky technicolor modeline?.
* How do I get the minibuffer back at the bottom of my edit window?: How do I get the minibuffer back at the bottom of my edit window?.
* How do I highlight regions of text in a buffer with different styles?: How do I highlight regions of text in a buffer with different styles?.
* How do I iconify my entire Epoch session at once?: How do I iconify my entire Epoch session at once?.
* How do I interactively select my foreground color?: How do I interactively select my foreground color?.
* How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?: How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?.
* How do I make the backspace key work properly?: How do I make the backspace key work properly?.
* How do I prevent the initial edit window from appearing?: How do I prevent the initial edit window from appearing?.
* How do I replace the mouse region selection underlining with a different style?: How do I replace the mouse region selection underlining with a different style?.
* How do I stop the windows from automatically raising upon entry?: How do I stop the windows from automatically raising upon entry?.
* How do I switch fonts interactively?: How do I switch fonts interactively?.
* How do I turn the keyboard bell off?: How do I turn the keyboard bell off?.
* I switched Epoch versions and my X resources are being ignored: I switched Epoch versions and my X resources are being ignored.
* Icon and window names: How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?.
* Iconifying all of epoch: How do I iconify my entire Epoch session at once?.
* Ignored resources: I switched Epoch versions and my X resources are being ignored.
* Index: Index.
* Inital edit window: How do I prevent the initial edit window from appearing?.
* Input and display of characters: How can I configure Epoch to support full 8-bit character sets?.
* Interactively setting foreground color: How do I interactively select my foreground color?.
* Joneja, Dev: Contributors.
* Kaplan, Simon: Advanced Questions.
* Kaplan, Simon: Contributors.
* Keyboard bell, turning it off: How do I turn the keyboard bell off?.
* Keyboard: Keyboard.
* Latest Changes: Latest Changes.
* Lillqvist, Tor: Contributors.
* Love, Chris: Advanced Questions.
* Love, Chris: Contributors.
* Love, Chris: How do I prevent the initial edit window from appearing?.
* Lucid Emacs: What's the difference between Epoch and GNU Emacs version 19?.
* Mailing lists: What Epoch newsgroups/mailing lists are out there?.
* Manuals: Prerequisites.
* Marshall, Simon: Contributors.
* McCool, Rob: Contributors.
* Menubars, support of: Does Epoch support popup menus or menubars?.
* Menus: Menus.
* Minibuffer window: How do I get the minibuffer back at the bottom of my edit window?.
* Modeline, customizing and coloring: How do I design my own really funky technicolor modeline?.
* Monochrome and highlighting: Can I use highlighting packages on monochrome displays?.
* Mouse selection attributes, changing: How do I replace the mouse region selection underlining with a different style?.
* Moving to Epoch 4 broke some lisp code that worked before: Moving to Epoch 4 broke some lisp code that worked before.
* Names of icons and windows: How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?.
* New version: I switched Epoch versions and my X resources are being ignored.
* Newsgroups: What Epoch newsgroups/mailing lists are out there?.
* On entry, windows raise: How do I stop the windows from automatically raising upon entry?.
* One minibuffer window: How do I get the minibuffer back at the bottom of my edit window?.
* OpenLook: How can I cut and paste between Epoch and OpenLook?.
* Other Resources: Other Resources.
* Page up or down keys, using: How can I use Page Up and Page Down keys?.
* Per-mode window attributes: How do I define edit screen attributes on a per-mode basis?.
* Pop up windows, stopping: How do I stop the windows from automatically raising upon entry?.
* Popup menus, support of: Does Epoch support popup menus or menubars?.
* PostScript version of Epoch manual: Where can I get a PostScript version of the Epoch manual?.
* Prerequisites: Prerequisites.
* Reporting bugs: Where do I send bug reports?.
* Rooms: How can I make more room for windows?.
* Screen attributes: How do I define edit screen attributes on a per-mode basis?.
* Scrollbars, support of: Does Epoch support scrollbars?.
* Silveira, Luis Miguel: How do I highlight regions of text in a buffer with different styles?.
* Smith, Arnold: Contributors.
* Smith, Arnold: How can I cut and paste between Epoch and OpenLook?.
* Steroids: What is Epoch?.
* Switching fonts interactively: How do I switch fonts interactively?.
* Text highlighting: How do I highlight regions of text in a buffer with different styles?.
* Thome, Michael: Contributors.
* Using Page Up and Page Down: How can I use Page Up and Page Down keys?.
* Version of Epoch: What is the latest version of Epoch?.
* Vignes, Ole: Contributors.
* Vignes, Ole: How do I make the backspace key work properly?.
* Virden, Larry: Latest Changes.
* Virtual Screens: How can I make more room for windows?.
* Weiner, Bob: Contributors.
* Wells, Joe: Contributors.
* Wells, Joe: How do I make the backspace key work properly?.
* Wells, Joe: How do I make the backspace key work properly?.
* What Epoch newsgroups/mailing lists are out there?: What Epoch newsgroups/mailing lists are out there?.
* What is Epoch?: What is Epoch?.
* What is the latest version of Epoch?: What is the latest version of Epoch?.
* What is this?: Top.
* What's the difference between Epoch and GNU Emacs version 19?: What's the difference between Epoch and GNU Emacs version 19?.
* Where can I find Epoch-specific emacs lisp packages?: Where can I find Epoch-specific emacs lisp packages?.
* Where can I get a PostScript version of the Epoch manual?: Where can I get a PostScript version of the Epoch manual?.
* Where do I send bug reports?: Where do I send bug reports?.
* Where is Epoch?: How can I get Epoch?.
* Window and icon names: How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?.
* Window attributes: How do I define edit screen attributes on a per-mode basis?.
* Window room: How can I make more room for windows?.
* Windows pop up, stopping: How do I stop the windows from automatically raising upon entry?.
* Windows raise on entry: How do I stop the windows from automatically raising upon entry?.
* Windows: Windows.
* X Resources ignored: I switched Epoch versions and my X resources are being ignored.
* X11 Windowing System: What is Epoch?.
* Zones: Moving to Epoch 4 broke some lisp code that worked before.
Tag table:
Node: Top97
Node: Disclaimer1916
Node: Latest Changes2513
Node: Formatting the FAQ2824
Node: Prerequisites4620
Node: Epoch and GNU Emacs5456
Node: What is Epoch?5893
Node: How can I get Epoch?6618
Node: What is the latest version of Epoch?7469
Node: Moving to Epoch 4 broke some lisp code that worked before8060
Node: I switched Epoch versions and my X resources are being ignored9639
Node: What's the difference between Epoch and GNU Emacs version 19?11113
Node: Configuring Epoch17940
Node: How can my .emacs file deal with both GNU Emacs and Epoch?18269
Node: How can I configure Epoch to support full 8-bit character sets?19381
Node: How can I cut and paste between Epoch and OpenLook?20643
Node: Windows22210
Node: How do I get the minibuffer back at the bottom of my edit window?22858
Node: How do I prevent the initial edit window from appearing?23248
Node: How do I stop the windows from automatically raising upon entry?24081
Node: How do I change the cursor?24630
Node: How do I define edit screen attributes on a per-mode basis?25859
Node: How do I make Epoch manage edit window and icon names based on the name of the current buffer(s)?26943
Node: How do I iconify my entire Epoch session at once?27741
Node: Does Epoch support scrollbars?28567
Node: How can I make more room for windows?29607
Node: Colors and Fonts31187
Node: How do I interactively select my foreground color?31618
Node: How do I switch fonts interactively?32907
Node: How can I associate a certain foreground color with a file?34755
Node: How do I design my own really funky technicolor modeline?35773
Node: How do I replace the mouse region selection underlining with a different style?37704
Node: Menus39174
Node: Does Epoch support popup menus or menubars?39325
Node: Keyboard45938
Node: How do I make the backspace key work properly?46250
Node: How can I use Page Up and Page Down keys?49347
Node: How can I stop function keys from putting garbage in my buffer?53345
Node: How do I turn the keyboard bell off?54113
Node: Highlighting54939
Node: How do I highlight regions of text in a buffer with different styles?55216
Node: Can I use highlighting packages on monochrome displays?58130
Node: Epoch-Specific Emacs Lisp Packages58860
Node: Where can I find Epoch-specific emacs lisp packages?59173
Node: Where can I get a PostScript version of the Epoch manual?61434
Node: Other Resources61843
Node: What Epoch newsgroups/mailing lists are out there?62093